
var http = require('http');
var https = require('https');
var privateKey  = fs.readFileSync('sslcert/server.key', 'utf8');
var certificate = fs.readFileSync('sslcert/server.cert', 'utf8');

var credentials = {key: privateKey, cert: certificate};
var express = require('express');

// const { nextTick } = require('process');

 const app = express();
 var httpServer = http.createServer(app);
 var httpsServer = https.createServer( credentials, app);
// const quespage = require("./website/questiongame/quespage");



app.use(express.static('website'))

httpServer.listen(3000);
httpsServer.listen(3001);
